import 'package:provider/provider.dart';
import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';
import 'package:s_mankey/utils/audio_playes.dart';
import 'package:s_mankey/view_model/audio_vmodel.dart';
import 'package:s_mankey/view_model/city_VM.dart';
import 'package:s_mankey/view_model/confirm_Invite_vmodel.dart';
import 'package:s_mankey/view_model/home_vmodel.dart';
import 'package:s_mankey/view_model/locale_vm.dart';
import 'package:s_mankey/view_model/login_vmodel.dart';
import 'package:s_mankey/view_model/my_page_vmodel.dart';
import 'package:s_mankey/view_model/search_vm.dart';

import '../view_model/locale_vm.dart';


List<SingleChildWidget> providers= [
  ...independentServices,

];

///独立的model, 继承ChangeNotifier的类一定要在这里增加.不然provider会提示找不到.
List<SingleChildWidget> independentServices= [
//  ChangeNotifierProvider<ThemeModelDemo>.value(value: ThemeModelDemo()),
  ChangeNotifierProvider<LocaleVM>(create: (content) => LocaleVM(),),
  ChangeNotifierProvider<CityVM>(create: (content) => CityVM(),),
  ChangeNotifierProvider<SearchVM>(create: (content) => SearchVM(),),
  ChangeNotifierProvider<CourseInvitation>(create: (context) => CourseInvitation(),),
  ChangeNotifierProvider<ConfirmInviteVModel>(create: (content) => ConfirmInviteVModel(),),
  ChangeNotifierProvider<CMMAudioPlayer>(create: (content) => CMMAudioPlayer(),),
  ChangeNotifierProvider<LoginVModel>(create: (content) => LoginVModel(),),
];

